local extension = Package:new("kfg_cards", Package.CardPack)
extension.extensionName = "klee_xy_I"

extension:loadSkillSkelsByPath("./packages/klee_xy_I/pkg/kgf_cards/skills")--技能位置

Fk:loadTranslationTable{--翻译
  ["kfg_cards"] = "嘟嘟可",
}

--借刀杀人
local klee__collateral = fk.CreateCard{
  name = "&klee__collateral",
  type = Card.TypeTrick,
  skill = "klee__collateral_skill",
}
Fk:loadTranslationTable{
  ["klee__collateral"] = "借刀杀人",
}
--借刀杀人

--移花接木
local graft_and_transplant = fk.CreateCard{
  name = "&graft_and_transplant",
  type = Card.TypeTrick,
  skill = "graft_and_transplant_skill",
}
extension:addCardSpec("graft_and_transplant")
Fk:loadTranslationTable{
  ["graft_and_transplant"] = "移花接木",
  [":graft_and_transplant"] = "锦囊牌<br/>"..
  "<b>时机</b>：出牌阶段<br/>"..
  "<b>目标</b>：一名有牌的其他角色<br/>"..
  "<b>效果</b>：目标角色选择一项：1.使用一张【杀】；2.交给你两张牌。",
}
--移花接木
--木牛流马
local role__wooden_ox = fk.CreateCard{
  name = "role__wooden_ox",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeTreasure,
  equip_skill = "role__wooden_ox_skill&",

  on_uninstall = function(self, room, player)
    Treasure.onUninstall(self, room, player)
    player:setSkillUseHistory("role__wooden_ox_skill&", 0, Player.HistoryPhase)
  end,
}
extension:loadCardSkels{ role__wooden_ox }
extension:addCardSpec("role__wooden_ox", Card.Diamond, 5)
Fk:loadTranslationTable{
  ["role__wooden_ox"] = "木牛流马",
  [":role__wooden_ox"] = "装备牌·宝物<br/>"..
  "<b>宝物技能</b>：<br/>出牌阶段限一次，你可将一张手牌扣置于装备区里的【木牛流马】下（称为“辎”，“辎”至多有5张），然后你可以将【木牛流马】置入一名其他角色的装备区。你可以如手牌般使用或打出“辎”。",
}
--木牛流马
--玉玺
local klee_seal = fk.CreateCard{
  name = "klee_seal",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeTreasure,
  equip_skill = "#klee_seal_skill",
}
extension:addCardSpec("klee_seal", Card.Spade, 5)
Fk:loadTranslationTable{
  ["klee_seal"] = "玉玺",
  [":klee_seal"] = "装备牌·宝物<br/><b>宝物技能</b>：其他角色的出牌阶段限一次，其可以交给你一张手牌，将势力变更至与你相同。",
}
--玉玺

extension:loadCardSkels {
  klee__collateral,
  graft_and_transplant,
  role__wooden_ox,
  klee_seal,

}

return extension